﻿﻿<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="static/css/swiper.min_1.css">
  <link rel="stylesheet" href="static/css/animate.min_1.css">
  <link rel="stylesheet" href="static/css/style.css">
  <script src="static/js/swiper.min.js"></script>
  <script src="static/js/swiper.animate.min.js"></script>
  <title>H5</title>
</head>
<!-- 
  更多效果: https://www.swiper.com.cn/usage/animate/index.html
  给需要动画的元素添加类名    ani
  swiper-animate-effect     动画效果  fadeIn
  swiper-animate-duration   动画时间  0.5s
  swiper-animate-delay      动画延时  1.5s
 -->
<body>
  <div class="swiper-container">
    <div class="swiper-wrapper">
      <section class="swiper-slide banner1">
          <!-- <img src="static/picture/s1-t2.png" class="ani"
          style="width:100px;height:110px;margin: 20px" swiper-animate-effect="rollIn"
          swiper-animate-duration="2s" swiper-animate-delay="0s"> -->
          <div class="ani t1" swiper-animate-effect="bounceInDown" swiper-animate-duration="1s" swiper-animate-delay="0s">第一行</div>
          <div class="ani t2" swiper-animate-effect="bounceInLeft" swiper-animate-duration="1s" swiper-animate-delay="0.2s">第二行，多内容区域</div>
          <div class="ani t3" swiper-animate-effect="rotateInUpLeft" swiper-animate-duration="1s" swiper-animate-delay="00s">第三行，一大段内容区域内容区域内容区域内容区域，内容区域内容区域内容区域内容区域内容区域，内容区域内容区域内容区域内容区域内容区域内容区域，内容区域内容区域内容区域内容区域。内容区域内容区域内容区域，内容区域内容区域内容区域内容区域，内容区域内容区域内容区域。</div>
      </section>
      <section class="swiper-slide">阿萨德</section>
      <section class="swiper-slide">阿萨德</section>
      <section class="swiper-slide">阿萨德</section>
    </div>
    <div class="swiper-pagination"></div>
  </div>
  <script>
    var mySwiper = new Swiper('.swiper-container', {
      direction: 'vertical',
      pagination: {
        el: '.swiper-pagination',
      },
      mousewheel: true,
      on: {
        init: function () {
          swiperAnimateCache(this);
          swiperAnimate(this);
        },
        slideChangeTransitionEnd: function () {
          swiperAnimate(this);
        }
      }
    })
  </script>
</body>

</html>